[−][src]Enum solana_ws::OpCode
Operation codes as part of rfc6455.
Variants
ContinueIndicates a continuation frame of a fragmented message.
TextIndicates a text data frame.
BinaryIndicates a binary data frame.
CloseIndicates a close control frame.
PingIndicates a ping control frame.
PongIndicates a pong control frame.
BadIndicates an invalid opcode was received.
Methods
impl OpCode[src]
impl OpCodepub fn is_control(&self) -> bool[src]
pub fn is_control(&self) -> boolTest whether the opcode indicates a control frame.
Trait Implementations
impl Clone for OpCode[src]
impl Clone for OpCodefn clone(&self) -> OpCode[src]
fn clone(&self) -> OpCodefn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for OpCode[src]
impl Copy for OpCodeimpl From<u8> for OpCode[src]
impl From<u8> for OpCodeimpl Into<u8> for OpCode[src]
impl Into<u8> for OpCodeimpl Eq for OpCode[src]
impl Eq for OpCodeimpl PartialEq<OpCode> for OpCode[src]
impl PartialEq<OpCode> for OpCodefn eq(&self, other: &OpCode) -> bool[src]
fn eq(&self, other: &OpCode) -> bool#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Debug for OpCode[src]
impl Debug for OpCodeimpl Display for OpCode[src]
impl Display for OpCodeAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId