pub struct ChannelEditor { /* private fields */ }
Expand description
API for editing [ChannelEntry] in the DB.
Implementations§
Source§impl ChannelEditor
impl ChannelEditor
Sourcepub fn change_balance(self, balance: HoprBalance) -> Self
pub fn change_balance(self, balance: HoprBalance) -> Self
Change the HOPR balance of the channel.
Sourcepub fn change_status(self, status: ChannelStatus) -> Self
pub fn change_status(self, status: ChannelStatus) -> Self
Change the channel status.
Sourcepub fn change_ticket_index(self, index: impl Into<U256>) -> Self
pub fn change_ticket_index(self, index: impl Into<U256>) -> Self
Change the ticket index.
Sourcepub fn change_epoch(self, epoch: impl Into<U256>) -> Self
pub fn change_epoch(self, epoch: impl Into<U256>) -> Self
Change the channel epoch.
Auto Trait Implementations§
impl Freeze for ChannelEditor
impl RefUnwindSafe for ChannelEditor
impl Send for ChannelEditor
impl Sync for ChannelEditor
impl Unpin for ChannelEditor
impl UnwindSafe for ChannelEditor
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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