pub enum Message {
DtnStateRequest(DtnStateRequest),
DtnStateResponse(DtnStateResponse),
DtnConfigRequest(DtnConfigRequest),
DtnConfigResponse(DtnConfigResponse),
DtnAddUserRequest(DtnAddUserRequest),
DtnAddUserResponse(DtnAddUserResponse),
DtnRemoveUserRequest(DtnRemoveUserRequest),
DtnRemoveUserResponse(DtnRemoveUserResponse),
DtnSetTotalSizeRequest(DtnSetTotalSizeRequest),
DtnSetTotalSizeResponse(DtnSetTotalSizeResponse),
}
Expand description
message type
Variants
DtnStateRequest(DtnStateRequest)
dtn state request
DtnStateResponse(DtnStateResponse)
dtn state response
DtnConfigRequest(DtnConfigRequest)
dtn config request
DtnConfigResponse(DtnConfigResponse)
dtn config response
DtnAddUserRequest(DtnAddUserRequest)
dtn add user request
DtnAddUserResponse(DtnAddUserResponse)
dtn add user response
DtnRemoveUserRequest(DtnRemoveUserRequest)
dtn remove user request
DtnRemoveUserResponse(DtnRemoveUserResponse)
dtn remove user response
DtnSetTotalSizeRequest(DtnSetTotalSizeRequest)
dtn set total size request
DtnSetTotalSizeResponse(DtnSetTotalSizeResponse)
dtn set total size response
Implementations
sourceimpl Message
impl Message
sourcepub fn merge<B>(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
pub fn merge<B>(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more