Skip to content

Commit ed0dcb5

Browse files
committed
attribute: require Attributes be Sync
Allows users to transfer &AttributeWrite (and MessageBuilder) across thread boundaries.
1 parent cbd0a25 commit ed0dcb5

File tree

1 file changed

+1
-1
lines changed
  • stun-types/src/attribute

1 file changed

+1
-1
lines changed

stun-types/src/attribute/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ pub trait AttributeStaticType {
297297
}
298298

299299
/// A STUN attribute for use in [`Message`](crate::message::Message)s
300-
pub trait Attribute: std::fmt::Debug {
300+
pub trait Attribute: std::fmt::Debug + std::marker::Sync {
301301
/// Retrieve the type of an `Attribute`.
302302
fn get_type(&self) -> AttributeType;
303303

0 commit comments

Comments
 (0)