pub struct ChannelParameters {
pub channel_mode: Option<ChannelMode>,
pub max_rx_sdu_size: Option<u16>,
pub security_requirements: Option<SecurityRequirements>,
}Expand description
Preferred L2CAP channel parameters for an advertised service.
Corresponds directly to the FIDL ChannelParameters definition - with the extra properties
of Clone and PartialEq.
The invariants of the FIDL definition are enforced - the max SDU size must be >= 48.
See [fuchsia.bluetooth.bredr.ChannelParameters] for more documentation.
Fields§
§channel_mode: Option<ChannelMode>§max_rx_sdu_size: Option<u16>§security_requirements: Option<SecurityRequirements>Trait Implementations§
Source§impl Clone for ChannelParameters
impl Clone for ChannelParameters
Source§impl Debug for ChannelParameters
impl Debug for ChannelParameters
Source§impl Default for ChannelParameters
impl Default for ChannelParameters
Source§impl PartialEq for ChannelParameters
impl PartialEq for ChannelParameters
impl StructuralPartialEq for ChannelParameters
Source§impl TryFrom<&ChannelParameters> for ChannelParameters
impl TryFrom<&ChannelParameters> for ChannelParameters
Auto Trait Implementations§
impl Freeze for ChannelParameters
impl RefUnwindSafe for ChannelParameters
impl Send for ChannelParameters
impl Sync for ChannelParameters
impl Unpin for ChannelParameters
impl UnsafeUnpin for ChannelParameters
impl UnwindSafe for ChannelParameters
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more