pub struct MooMessage {
pub verb: MooVerb,
pub name: String,
pub request_id: u32,
pub headers: HashMap<String, String>,
pub body: Option<MooBody>,
}Expand description
A parsed MOO protocol message.
Fields§
§verb: MooVerb§name: StringFor REQUEST: <service>/<method>. For CONTINUE/COMPLETE: <status>.
request_id: u32§headers: HashMap<String, String>Headers other than Request-Id, Content-Length, and Content-Type.
body: Option<MooBody>Implementations§
Trait Implementations§
Source§impl Clone for MooMessage
impl Clone for MooMessage
Source§fn clone(&self) -> MooMessage
fn clone(&self) -> MooMessage
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 moreAuto Trait Implementations§
impl !Freeze for MooMessage
impl RefUnwindSafe for MooMessage
impl Send for MooMessage
impl Sync for MooMessage
impl Unpin for MooMessage
impl UnsafeUnpin for MooMessage
impl UnwindSafe for MooMessage
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