pub struct Builder<Proto = (), Pin = NoPin, Mono: InfraMonotonic = u32, Cmd = ()> { /* private fields */ }
Expand description
Receiver Builder
Implementations§
Source§impl<Proto, Input, Mono, Cmd> Builder<Proto, Input, Mono, Cmd>where
Mono: InfraMonotonic,
impl<Proto, Input, Mono, Cmd> Builder<Proto, Input, Mono, Cmd>where
Mono: InfraMonotonic,
Sourcepub fn monotonic<NewMono: InfraMonotonic>(
self,
) -> Builder<Proto, Input, NewMono, Cmd>
pub fn monotonic<NewMono: InfraMonotonic>( self, ) -> Builder<Proto, Input, NewMono, Cmd>
Set the monotonic clock type to use
pub fn protocol<NewProto: Protocol>( self, ) -> Builder<NewProto, Input, Mono, NewProto::Cmd>
pub fn nec(self) -> Builder<Nec, Input, Mono, NecCommand>
pub fn nec16(self) -> Builder<Nec16, Input, Mono, <Nec16 as Protocol>::Cmd>
pub fn nec_samsung( self, ) -> Builder<SamsungNec, Input, Mono, <SamsungNec as Protocol>::Cmd>
pub fn nec_apple( self, ) -> Builder<AppleNec, Input, Mono, <AppleNec as Protocol>::Cmd>
pub fn rc5(self) -> Builder<Rc5, Input, Mono, <Rc5 as Protocol>::Cmd>
pub fn rc6(self) -> Builder<Rc6, Input, Mono, <Rc6 as Protocol>::Cmd>
pub fn samsung_bluray(self) -> Builder<Sbp, Input, Mono, <Sbp as Protocol>::Cmd>
pub fn denon(self) -> Builder<Denon, Input, Mono, <Denon as Protocol>::Cmd>
Sourcepub fn remotecontrol<Remote>(
self,
_: Remote,
) -> Builder<Proto, Input, Mono, Button<Remote>>where
Remote: RemoteControlModel,
pub fn remotecontrol<Remote>(
self,
_: Remote,
) -> Builder<Proto, Input, Mono, Button<Remote>>where
Remote: RemoteControlModel,
Use Remote control
Sourcepub fn pin<NewPin: InputPin>(
self,
pin: NewPin,
) -> Builder<Proto, NewPin, Mono, Cmd>
pub fn pin<NewPin: InputPin>( self, pin: NewPin, ) -> Builder<Proto, NewPin, Mono, Cmd>
The Receiver use pin
as input
pub fn frequency(self, hz: u32) -> Self
pub fn build_polled(self) -> PeriodicPoll<Proto, Input, Cmd>
Trait Implementations§
Auto Trait Implementations§
impl<Proto, Pin, Mono, Cmd> Freeze for Builder<Proto, Pin, Mono, Cmd>where
Pin: Freeze,
impl<Proto, Pin, Mono, Cmd> RefUnwindSafe for Builder<Proto, Pin, Mono, Cmd>
impl<Proto, Pin, Mono, Cmd> Send for Builder<Proto, Pin, Mono, Cmd>
impl<Proto, Pin, Mono, Cmd> Sync for Builder<Proto, Pin, Mono, Cmd>
impl<Proto, Pin, Mono, Cmd> Unpin for Builder<Proto, Pin, Mono, Cmd>
impl<Proto, Pin, Mono, Cmd> UnwindSafe for Builder<Proto, Pin, Mono, Cmd>
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