pub struct RpcEvent { /* private fields */ }Implementations
sourceimpl RpcEvent
impl RpcEvent
pub fn kind(&self) -> RpcEventKind
pub fn frame(&self) -> &Arc<FrameData>
pub fn sender(&self) -> &str
pub fn payload(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn is_response_required(&self) -> bool
sourcepub fn method(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn method(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Panics
Should not panic
pub fn parse_method(&self) -> Result<&str, Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RpcEvent
impl Send for RpcEvent
impl Sync for RpcEvent
impl Unpin for RpcEvent
impl UnwindSafe for RpcEvent
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