Trait ice_rs::encoding::FromBytes [−][src]
The FromBytes
trait needs to be implemented by all types
that need to be decoded.
Required methods
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
Implementations on Foreign Types
impl FromBytes for String
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl<T: FromBytes + Eq + Hash, U: FromBytes> FromBytes for HashMap<T, U>
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl<T: FromBytes> FromBytes for Vec<T>
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for u8
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for i16
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for i32
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for i64
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for f32
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for f64
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for bool
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl<T: FromBytes> FromBytes for Option<T>
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
Implementors
impl FromBytes for IceSize
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for OptionalFlag
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for SliceFlags
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for ProtocolError
[src]
fn from_bytes(
bytes: &[u8],
_read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
[src]
bytes: &[u8],
_read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>> where
Self: Sized,
impl FromBytes for Encapsulation
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for EndpointData
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for Header
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for Identity
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for LocatorResult
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for ProxyData
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for ReplyData
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for RequestData
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
impl FromBytes for Version
[src]
fn from_bytes(
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>
[src]
bytes: &[u8],
read_bytes: &mut i32
) -> Result<Self, Box<dyn Error + Sync + Send>>