pub enum CloseMessageReason {
WrongSequenceNumber,
InvalidServiceMessage,
KeepAliveTimeout,
ClosedByApplication,
}Expand description
Note: You should only use this struct in tests.
Variants§
WrongSequenceNumber
When the canister receives a wrong sequence number from the client.
InvalidServiceMessage
When the canister receives an invalid service message from the client.
KeepAliveTimeout
When the canister doesn’t receive the keep alive message from the client in time.
ClosedByApplication
When the developer calls the close function.
Trait Implementations§
Source§impl CandidType for CloseMessageReason
impl CandidType for CloseMessageReason
Source§impl Clone for CloseMessageReason
impl Clone for CloseMessageReason
Source§fn clone(&self) -> CloseMessageReason
fn clone(&self) -> CloseMessageReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloseMessageReason
impl Debug for CloseMessageReason
Source§impl<'de> Deserialize<'de> for CloseMessageReason
impl<'de> Deserialize<'de> for CloseMessageReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CloseMessageReason
impl PartialEq for CloseMessageReason
impl Eq for CloseMessageReason
impl StructuralPartialEq for CloseMessageReason
Auto Trait Implementations§
impl Freeze for CloseMessageReason
impl RefUnwindSafe for CloseMessageReason
impl Send for CloseMessageReason
impl Sync for CloseMessageReason
impl Unpin for CloseMessageReason
impl UnwindSafe for CloseMessageReason
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