Enum brush_contracts::traits::ownable::OwnableError
source · [−]pub enum OwnableError {
CallerIsNotOwner,
NewOwnerIsZero,
}Expand description
The Ownable error type. Contract will throw one of this errors.
Modifier returns CallerIsNotOwner.
Variants
CallerIsNotOwner
NewOwnerIsZero
Trait Implementations
sourceimpl Debug for OwnableError
impl Debug for OwnableError
sourceimpl Decode for OwnableError
impl Decode for OwnableError
sourcefn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error> where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl Encode for OwnableError
impl Encode for OwnableError
sourcefn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl From<OwnableError> for DiamondError
impl From<OwnableError> for DiamondError
sourcefn from(error: OwnableError) -> Self
fn from(error: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for FlashBorrowerError
impl From<OwnableError> for FlashBorrowerError
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for FlashLenderError
impl From<OwnableError> for FlashLenderError
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for PaymentSplitterError
impl From<OwnableError> for PaymentSplitterError
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for PSP1155Error
impl From<OwnableError> for PSP1155Error
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for PSP22Error
impl From<OwnableError> for PSP22Error
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for PSP22TokenTimelockError
impl From<OwnableError> for PSP22TokenTimelockError
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for PSP34Error
impl From<OwnableError> for PSP34Error
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl From<OwnableError> for TimelockControllerError
impl From<OwnableError> for TimelockControllerError
sourcefn from(ownable: OwnableError) -> Self
fn from(ownable: OwnableError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OwnableError> for OwnableError
impl PartialEq<OwnableError> for OwnableError
sourceimpl TypeInfo for OwnableError
impl TypeInfo for OwnableError
impl EncodeLike<OwnableError> for OwnableError
impl Eq for OwnableError
impl StructuralEq for OwnableError
impl StructuralPartialEq for OwnableError
Auto Trait Implementations
impl RefUnwindSafe for OwnableError
impl Send for OwnableError
impl Sync for OwnableError
impl Unpin for OwnableError
impl UnwindSafe for OwnableError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more