pub struct MethodFrame {
pub class_id: u16,
pub method_id: u16,
pub arguments: EncodedMethod,
}
Fields§
§class_id: u16
§method_id: u16
§arguments: EncodedMethod
Implementations§
Source§impl MethodFrame
impl MethodFrame
pub fn encode(&self) -> Result<FramePayload>
pub fn decode(frame: &Frame) -> Result<MethodFrame>
pub fn method_name(&self) -> &'static str
pub fn carries_content(&self) -> bool
Trait Implementations§
Source§impl Clone for MethodFrame
impl Clone for MethodFrame
Source§fn clone(&self) -> MethodFrame
fn clone(&self) -> MethodFrame
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 MethodFrame
impl RefUnwindSafe for MethodFrame
impl Send for MethodFrame
impl Sync for MethodFrame
impl Unpin for MethodFrame
impl UnwindSafe for MethodFrame
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