Enum liserk_shared::message::Message
source · pub enum Message {
Show 18 variants
ClientSetup(ClientSetupSecureConnection),
ClientAuthentification(ClientAuthentication),
Insert(Insertion),
InsertResponse {
inserted_id: String,
},
Query(Query),
QueryResponse {
data: Vec<Vec<u8>>,
},
SingleValueResponse {
data: Option<Vec<u8>>,
},
Count(CountSubject),
CountResponse(u32),
Update(Update),
UpdateResponse {
status: UpdateStatus,
},
Delete(Delete),
DeleteResult(bool),
DeleteForUsecase {
collection: String,
id: String,
},
Drop(DropSubject),
DropResult(bool),
EndOfCommunication,
CloseCommunication,
}
Variants§
ClientSetup(ClientSetupSecureConnection)
ClientAuthentification(ClientAuthentication)
Insert(Insertion)
InsertResponse
Query(Query)
QueryResponse
SingleValueResponse
Count(CountSubject)
CountResponse(u32)
Update(Update)
UpdateResponse
Fields
§
status: UpdateStatus
Delete(Delete)
DeleteResult(bool)
DeleteForUsecase
Drop(DropSubject)
DropResult(bool)
EndOfCommunication
CloseCommunication
Implementations§
source§impl Message
impl Message
pub fn message_type(&self) -> MessageType
pub fn setup_for_network(&self) -> Result<Vec<u8>, Error>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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<Message> for Message
impl PartialEq<Message> for Message
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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