Skip to main content

GateError

Enum GateError 

Source
pub enum GateError {
Show 30 variants Ffi(&'static str, c_int), Session { operation: String, source: Error, }, MissingGateColumn(String, String), MissingFkColumn(String, String), ForeignKeySchema(ForeignKeySchemaError), CompositeGateForeignKey { table: String, parent: String, }, MissingAudienceParentDeclaration { table: String, }, InvalidAudienceParentDeclaration { table: String, column: String, reason: String, }, ScopedOutboundRequiresPartitioning { table: String, }, InvalidAudience { table: String, value: Option<String>, reason: String, }, InvalidAudienceEncoding { table: String, value: Option<String>, source: CircleIdError, }, InvalidInboundAudiencePackage(String), InvalidInboundAudienceEncoding { context: String, source: CircleIdError, }, InvalidInboundRowIdentity { context: String, source: RowIdentityError, }, InvalidMaterializedRouting(String), InvalidMaterializedRoutingId { context: String, source: RowRoutingIdError, }, InvalidMaterializedAudience { context: String, source: CircleIdError, }, InvalidMaterializedRowIdentity { context: String, source: RowIdentityError, }, MissingChangesetPrimaryKey(String), MissingAudienceRow { table: String, row_id: String, }, MissingAudienceParent { table: String, row_id: Option<String>, parent: String, }, CircleAuthority { circle_id: CircleId, active_records: usize, }, CircleDeleted { circle_id: CircleId, }, InvalidCircleControl { circle_id: CircleId, source: CircleControlFailure, }, NoGatedDescendants(String), FkCycle(Vec<String>), UnsharedForeignKeyParent(Box<UnsharedForeignKeyParent>), CreateTableSchema(CreateTableSchemaError), Sql(String, Error), Cleanup { operation: Box<GateError>, cleanup: Box<GateError>, },
}

Variants§

§

Ffi(&'static str, c_int)

§

Session

Fields

§operation: String
§source: Error
§

MissingGateColumn(String, String)

§

MissingFkColumn(String, String)

§

ForeignKeySchema(ForeignKeySchemaError)

§

CompositeGateForeignKey

Fields

§table: String
§parent: String
§

MissingAudienceParentDeclaration

Fields

§table: String
§

InvalidAudienceParentDeclaration

Fields

§table: String
§column: String
§reason: String
§

ScopedOutboundRequiresPartitioning

Fields

§table: String
§

InvalidAudience

Fields

§table: String
§reason: String
§

InvalidAudienceEncoding

Fields

§table: String
§

InvalidInboundAudiencePackage(String)

§

InvalidInboundAudienceEncoding

Fields

§context: String
§

InvalidInboundRowIdentity

Fields

§context: String
§

InvalidMaterializedRouting(String)

§

InvalidMaterializedRoutingId

Fields

§context: String
§

InvalidMaterializedAudience

Fields

§context: String
§

InvalidMaterializedRowIdentity

Fields

§context: String
§

MissingChangesetPrimaryKey(String)

§

MissingAudienceRow

Fields

§table: String
§row_id: String
§

MissingAudienceParent

Fields

§table: String
§row_id: Option<String>
§parent: String
§

CircleAuthority

Fields

§circle_id: CircleId
§active_records: usize
§

CircleDeleted

A host write named a Circle whose control chain has terminated in a deletion. The Circle accepts no further content.

Fields

§circle_id: CircleId
§

InvalidCircleControl

Fields

§circle_id: CircleId
§

NoGatedDescendants(String)

A gated_by_descendants ancestor (the table) has no inferred gated descendant — no synced table has a foreign key into it after the join-table back-edge is excluded. The keep would be vacuously false, so the declaration is a host error rather than a silent always-share.

§

FkCycle(Vec<String>)

The gated tables form an FK cycle, so no parent-first apply order exists.

§

UnsharedForeignKeyParent(Box<UnsharedForeignKeyParent>)

A captured write would share a row whose foreign key names a row the gate does not share. Every device rebuilds the Store by replaying the published commits into an empty database, so publishing this puts a reference on the wire that no device can resolve and every replay holds on forever. Boxed: it names five strings, and DbError travels in every database Result.

§

CreateTableSchema(CreateTableSchemaError)

§

Sql(String, Error)

§

Cleanup

Fields

§operation: Box<GateError>
§cleanup: Box<GateError>

Trait Implementations§

Source§

impl Debug for GateError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for GateError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for GateError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<CreateTableSchemaError> for GateError

Source§

fn from(error: CreateTableSchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<GateError> for DbError

Source§

fn from(source: GateError) -> Self

Converts to this type from the input type.
Source§

impl From<GateError> for SnapshotImageError

Source§

fn from(source: GateError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,