pub struct ServerMsg;Implementations§
Source§impl ServerMsg
impl ServerMsg
pub fn welcome(sub: &str, seq: u64, how: Resumption) -> Value
pub fn ack(id: &str, seq: u64) -> Value
Sourcepub fn up_to_date(seq: u64) -> Value
pub fn up_to_date(seq: u64) -> Value
“Your view is current as of seq, and nothing in it changed.”
pub fn nack(id: &str, why: &str) -> Value
Sourcepub fn error(why: &str) -> Value
pub fn error(why: &str) -> Value
The connection is over before it began: the identity was refused.
Coarse on purpose (identity::Rejected::message) — a client learns it was refused and not
which of the three ways, because the difference is useful to an attacker and to nobody
else. The operator gets the distinction, in the log.
Auto Trait Implementations§
impl Freeze for ServerMsg
impl RefUnwindSafe for ServerMsg
impl Send for ServerMsg
impl Sync for ServerMsg
impl Unpin for ServerMsg
impl UnwindSafe for ServerMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more